package com.dragon.modules.yuegou.service.product;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dragon.common.web.PageRequest;
import com.dragon.modules.yuegou.entity.product.CoupMemberRecordEntity;
import com.dragon.modules.yuegou.model.product.CoupMemberRecord;
import com.dragon.modules.yuegou.model.product.CouponGrantRecord;
import com.dragon.modules.yuegou.model.product.ReceiveCommodityCouponModel;
import com.dragon.modules.yuegou.model.system.Document;
import com.dragon.modules.yuegou.request.ReceivedProCouponPageRequest;

import java.util.List;

/**
 * 会员领取记录表 服务接口
 *
 * @author pbuilder generated
 * @date 2021-05-11 16:55:17
 * @version 2.0
 */
public interface CoupMemberRecordService extends IService<CoupMemberRecordEntity> {

    /***
     * 查询已领取商品券的分页列表
     * @param page
     * @param pageRequest
     * @return
     */
    IPage<ReceiveCommodityCouponModel> receivePage(PageRequest page, ReceivedProCouponPageRequest pageRequest);

    Document receivePageExport(ReceivedProCouponPageRequest pageRequest);

    /****
     * 查询商户发放历史
     * @param page
     * @param merchantId
     * @return
     */
    IPage<CouponGrantRecord> grantRecords(PageRequest page, String merchantId);


    List<CoupMemberRecord> totalQuantity(List<String> coupTemplateIdList);
}